<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>CopyMesh</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">CopyMesh()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>CopyMesh</b></font>(#Mesh, #NewMesh)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>





Creates a #NewMesh which is the exact copy of the specified #Mesh. 
If <a href="../reference/purebasic_objects.html">#PB_Any</a> is used 
as the '#NewMesh' parameter, then the new mesh number will be returned as 'Result'. 
Dynamic meshes are not supported for copy (meshes created with the <font color="#924B72">#PB_Mesh_Dynamic</font> flag). 

<br>
<br>

If the Result equals 0, then the mesh copy has failed. 
If #NewMesh already exists, then it is freed and replaced by a new one. 

 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=buildmeshtangents.html>BuildMeshTangents()</a> - <a href=index.html>Mesh Index</a> - <a href=createcube.html>CreateCube()</a> -&gt;



</body></html>